﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ProductVariantsInGrid.ascx.cs" Inherits="CS424_9pts.Modules.ProductVariantsInGrid" %>
<%@ Register TagPrefix="uc" TagName="SimpleTextBox" Src="~/Modules/SimpleTextBox.ascx" %>
<%@ Register TagPrefix="uc" TagName="NumericTextBox" Src="~/Modules/NumericTextBox.ascx" %>
<%@ Register TagPrefix="uc" TagName="DecimalTextBox" Src="~/Modules/DecimalTextBox.ascx" %>
<%@ Register TagPrefix="uc" TagName="ProductPrice1" Src="~/Modules/ProductPrice1.ascx" %>
<%@ Reference Control="~/Modules/EmailTextBox.ascx" %>
<div class="product-variant-list">
    <asp:Repeater ID="rptVariants" runat="server"
       >
        <ItemTemplate>
            <div class="product-variant-line">
                <div class="picture">
                    <asp:Image ID="iProductVariantPicture" runat="server" />
                </div>
                <div class="overview">
                    <div class="productname">
                       productname
                    </div>
                    <asp:Label runat="server" ID="ProductVariantId" Text="ProductVariantId"
                        Visible="false" />
                </div>
                <div class="description">
                    <asp:Literal runat="server" ID="lDescription" Visible="true"
                        Text="description">
                    </asp:Literal>
                </div>
                <asp:Panel runat="server" ID="pnlDownloadSample" Visible="false" CssClass="downloadsample">
                    <span class="downloadsamplebutton">
                        <asp:HyperLink runat="server" ID="hlDownloadSample" Text="Download Sample">
                        </asp:HyperLink>
                    </span>
                </asp:Panel>
                <div class="clear">
                </div>
                <div class="attributes">
                 
                </div>
                <div class="clear">
                </div>
                <asp:Panel ID="pnlStockAvailablity" runat="server" class="stock">
                    <asp:Label ID="lblStockAvailablity" runat="server">
                    </asp:Label>
                </asp:Panel>
                <asp:PlaceHolder runat="server" ID="phSKU">
                    <div class="clear">
                    </div>
                    <div class="sku">
                       SKU<asp:Literal runat="server" ID="lSKU" />
                    </div>
                </asp:PlaceHolder>
                <asp:PlaceHolder runat="server" ID="phManufacturerPartNumber">
                    <div class="clear">
                    </div>
                    <div class="manufacturerpartnumber">
                       manufacturerpartnumber <asp:Literal runat="server" ID="lManufacturerPartNumber" />
                    </div>
                </asp:PlaceHolder>
                <div class="clear">
                </div>
                <div class="clear">
                </div>
                <div class="price">
                    <uc:ProductPrice1 ID="ctrlProductPrice" runat="server" ProductVariantId='<%#Eval("ProductVariantId") %>' />
                    <uc:DecimalTextBox runat="server" ID="txtCustomerEnteredPrice" Value="1"
                        RequiredErrorMessage="RequiredErrorMessage"
                        MinimumValue="0" MaximumValue="100000000" Width="100" />
                </div>
                <div class="add-info">
                    <uc:NumericTextBox runat="server" ID="txtQuantity" Value="1" RequiredErrorMessage="RequiredErrorMessage"
                        RangeErrorMessage="RangeErrorMessage" MinimumValue="1"
                        MaximumValue="999999" Width="50"></uc:NumericTextBox>
                    <asp:Button ID="btnAddToCart" runat="server" Text="Add To Cart"
                        CommandName="AddToCart" CssClass="productvariantaddtocartbutton">
                    </asp:Button>
                    <asp:Button ID="btnAddToWishlist" runat="server" Text="Add To Wishlist"
                        CommandName="AddToWishlist" CssClass="productvariantaddtowishlistbutton">
                    </asp:Button>
                </div>
                <div class="clear">
                </div>
                <asp:Label runat="server" ID="lblError" EnableViewState="false" CssClass="error" />
            </div>
        </ItemTemplate>
    </asp:Repeater>
</div>
